﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mbs.Threading;
using System.Net;
using Mbs.Net.Tcp;

namespace Mbs.Net
{
    public enum ConnectionState
    {
        Closed,
        Opening,
        Opened,
    }



    public interface IConnector : IServiceHost
    {
        ConnectionState State { get;}
        void Open(HostInfo info, Action successCallback, Action<Exception> failCallback);
    }
}
